package com.zdp.course.controller;

import com.zdp.course.pojo.CourseDo;
import lombok.Data;

/**
 * 类描述:
 *
 * @author ZhhengDP
 * @since 2021/8/16
 */
@Data
public class CourseDto {
    private Integer id;
    private Integer teacherId;
    private String name;
    private String content;
    private Integer courseServicePort;

    public CourseDto(){}

    public CourseDto(CourseDo courseDo,Integer courseServicePort){
        id = courseDo.getId();
        teacherId = courseDo.getTeacherId();
        name = courseDo.getName();
        content = courseDo.getContent();
        this.courseServicePort = courseServicePort;
    }
}
